/*
 * LED.h
 *
 *  Created on: 30.11.2012
 *      Author: Michael
 */

#ifndef LED_H_
#define LED_H_

#define GREEN_OFF      		GPIOD->BSRRH = GPIO_Pin_12
#define GREEN_ON      		GPIOD->BSRRL = GPIO_Pin_12
#define GREEN_TOG      		GPIOD->ODR ^= GPIO_Pin_12
#define ORANGE_OFF      	GPIOD->BSRRH = GPIO_Pin_13
#define ORANGE_ON      		GPIOD->BSRRL = GPIO_Pin_13
#define ORANGE_TOG     		GPIOD->ODR ^= GPIO_Pin_13
#define RED_OFF      		GPIOD->BSRRH = GPIO_Pin_14
#define RED_ON     			GPIOD->BSRRL = GPIO_Pin_14
#define RED_TOG    			GPIOD->ODR ^= GPIO_Pin_14
#define BLUE_OFF      		GPIOD->BSRRH = GPIO_Pin_15
#define BLUE_ON      		GPIOD->BSRRL = GPIO_Pin_15
#define BLUE_TOG      		GPIOD->ODR ^= GPIO_Pin_15

class LED {
public:
	LED();
	virtual ~LED();
private:
	void initLEDs();
};

#endif /* LED_H_ */
